/* 
 * File:   sphere.h
 * Author: chaterolas
 *
 * Created on 24 de junio de 2009, 08:21 PM
 */

#ifndef _SPHERE_H
#define	_SPHERE_H

#include "primitive.h"

class Sphere : public Primitive {
public:
    Sphere(Material *material, double cx, double cy, double cz, double radius);
    virtual ~Sphere();

    double intersect(Ray *r);
    Vector3D *getNormal(Vector3D &v);
    int getType();

private:
    double radius;
    Vector3D *center;

};

#endif	/* _SPHERE_H */

